<template>
    <div>
        <t-dialog theme="danger" header="确认删除" :body="'此操作将删除' + tips + '是否继续？'" :visible.sync="deleteVisible" @confirm="onConfirm" :onClose="deleteClose"
            cancelBtn="取消" confirmBtn="确定删除" />
    </div>
</template>

<script setup lang="ts">

const props = defineProps({
    tips: String,
    deleteVisible: Boolean
})

const emits = defineEmits(['onConfirmDelete', 'cancelDelete'])

const onConfirm = () => {
    emits('onConfirmDelete')
}

const deleteClose = () => {
    emits('cancelDelete')
}

</script>
  